//
//  GRRiceOrderMsgCell.m
//  YC_GRice
//
//  Created by luojinrong11 on 2018/9/8.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRRiceOrderMsgCell.h"
#import "GRRiceOrderModel.h"
@implementation GRRiceOrderMsgCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)updateWithModel:(id)model atIndexPath:(NSIndexPath *)indexPath inView:(UIView *)view{
    self.riceModel = model;
    self.orderNumLabel.text = self.riceModel.num;
    self.phoneNumLabel.text = self.riceModel.mobile;
    self.timeLabel.text = self.riceModel.createAtStr;
    
    
    
}

- (IBAction)copyAction:(id)sender {
    UIPasteboard * pastboard = [UIPasteboard generalPasteboard];
    pastboard.string = self.riceModel.num;
    [GRHUD showMessage:@"复制成功"];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
